<script language="javascript1.4" type="text/javascript">
var oForum=new Object();
oForum.nSelectedID=null;
{literal}
oForum.showItemDescription=function(nID){
	var oInformation=document.getElementById('inormation_'+nID);
	oInformation.style.top='0';
	oInformation.style.position='relative';
	oInformation.style.visibility='visible';									
}
oForum.hideItemDescription=function(nID){
	var oInformation=document.getElementById('inormation_'+nID);
	oInformation.style.top='-500';
	oInformation.style.position='absolute';
	oInformation.style.visibility='hidden';
}
oForum.toggleItemDescription=function(nID){
	if (this.nSelectedID==nID){
		this.hideItemDescription(nID);
		this.nSelectedID=null;
	} else {
		if (this.nSelectedID!=null) this.hideItemDescription(this.nSelectedID);
		this.showItemDescription(nID);
		this.nSelectedID=nID;
	}
	
}
{/literal}
</script>
{include file="admin/modules/forum/menu_goods.html"}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
<form name="child_list" action="index.php" enctype="multipart/form-data" method="post">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="forum">
<input name="mod" type="hidden" value="post">
<input name="act" type="hidden" value="mod">
<input name="product_lang" type="hidden" value="{$lang}">
<input name="parent" type="hidden" value="{$smarty.get.product_id}">
<input name="referer" type="hidden" value="{ext->get_referer}">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td height="40" bgcolor="#FFFFFF">
						<table width="100%" style="border-bottom:1px solid #D6DBDE" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
							<tr>		
								<td height="20" style="font-size:9px; color:#4C4C4C; text-align:center; border-right:1px solid #D6DBDE" width="70">{t t='Žymėjimas'}</td>	
								<td style="font-size:9px; color:#4C4C4C; text-align:left; padding:0px 0px 0px 10px">{t t='Komentaras'}</td>			
							</tr>
						</table>

					{ext->class_function class="forum" func="get_subject_data" subject=$smarty.get.product_id assign="subject_data"}
					{counter start=0 skip=1 assign="ct"}
					{foreach from=$subject_data.data key="post" item="el"}
					{counter skip=1 assign="ct"}
					
						<table  cellpadding="0" cellspacing="0" style="cursor:pointer">
							<tr>
								<td height="22" width="70" align="center" style="border-right:1px solid #D6DBDE" valign="top">{if $ct !=1}<input name="ids[{$post}]" value="{$post}" type="checkbox">{else}<img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" />{/if}</td>			
								<td style="padding:5px 0px 5px 10px" width="110" onClick="oForum.toggleItemDescription({$post})"><nobr>{$el.post_date.value|date:"Y-m-d H:i:s"}</td>		
								<td style="padding:5px 10px 5px 10px" onClick="oForum.toggleItemDescription({$post})">{$el.post_name.value}{if $el.post_email.value}, <a href="mailto:{$el.post_email.value}" target="_self">{$el.post_email.value}</a>{/if}</td>	
								
							</tr>
						</table>
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td bgcolor="#DBE1E5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
							</tr>
						</table>
						<table style="border-bottom:1px solid #DBE1E5; visibility:hidden; position:absolute" width="100%" cellpadding="0" cellspacing="0" bgcolor="#EDF0F2" id="inormation_{$post}">
							<tr>
								<td height="22" width="70" align="center" style="border-right:1px solid #D6DBDE" valign="top"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>			
								<td style="padding:5px 10px 5px 10px">
								{foreach from=$el key="key" item="el2"}
									{if $el2.type=='date'}
										{include file="admin/modules/forum/output_types/date.html"}
									{else}
										{include file="admin/modules/forum/output_types/text.html"}
									{/if}									
								{/foreach}
								</td>
							</tr>
						</table>					
					{/foreach}	
					{if 1>$ct}
					<script language="javascript1.4" type="text/javascript">
					window.location.href='index.php?admin=1&tpl_forum_module=goods&group_id={$smarty.get.group_id}&tpl_group_filter={$smarty.get.tpl_group_filter}';
					</script>
					{/if}
					</td>		
				</tr>
			</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#25404E"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
{include file="admin/modules/forum/menu_goods.html"}